import { reqGetReportData } from "@/api/mock";
import type { ReportDataModel } from "@/api/mock/interface/dataModel";
import { defineStore } from "pinia";


export const useReportDataStore = defineStore({
    id: 'reportData',
    state() {
        return {
            reportData: {} as ReportDataModel
        }
    },
    actions: {
        async getReportData() {
            const result = await reqGetReportData()
            // console.log(result)
            this.reportData = result
        }
    }
})